
import {post,get} from "../untils/db"

Page({
  data:{
  list:["待完成","待审核","已完成"],
  uid:""
  },
  async onLoad(){
   let token=wx.getStorageSync('login')
    let res=await get("/api/user/info",{},token)
    console.log(res);
    wx.setStorageSync('users', res.data.data)
    
    let result= await get("/api/employee-tasks/tasksList",{pageNum:15,pageSize:15},token)
    console.log(result);
    

    let re=await get("/api/integral/getOneIntegral",{},token)
    console.log(re);





  },
  jump(){
    wx.navigateTo({
      url: '../renwu/zguye/zhuye',
    })
  },
  huan(e){
  this.setData({
    uid:e.target.id
  })
  },
  go(){
    wx.navigateTo({
      url: '../go/go',
    })
  },
  gowait(){
    wx.navigateTo({
      url: '../gowait/go',
    })
  },
  gohave(){
    wx.navigateTo({
      url: '../shenhe/havegoexamine/go',
    })
  },
  record(){
    wx.navigateTo({
      url: '../point/record/record',
    })
  },

  async login(){   
}
})